/**
 * Created by abiu on 2016-03-03.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var apiS = new Schema({
    project_id:{type:String,required:true,index:true},
    api_name : {type:String,required:true},
    api_url:{type:String,required:true,index:true},
    api_description:{type:String,required:false},
    api_type:{type:String,required:true},
    api_body: {type:String,required:false},
    api_issign:{type:Boolean,required:false},
    api_signfn: {type:String,required:false},
    api_demo: {type:String,required:false},
    api_res:{type:String,required:false},
    api_res_explain:{type:String,required:false}
});

module.exports = mongoose.model('api',apiS);